package com.ruoyi.audit.service.impl;

import java.util.List;

import com.ruoyi.domain.PartnersCashRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.audit.mapper.PartnersCashRecordMapper;
import com.ruoyi.audit.service.IPartnersCashRecordService;

/**
 * 合伙人提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-24
 */
@Service
public class PartnersCashRecordServiceImpl implements IPartnersCashRecordService 
{
    @Autowired
    private PartnersCashRecordMapper partnersCashRecordMapper;

    /**
     * 查询合伙人提现记录
     * 
     * @param cashid 合伙人提现记录ID
     * @return 合伙人提现记录
     */
    @Override
    public PartnersCashRecord selectPartnersCashRecordById(Long cashid)
    {
        return partnersCashRecordMapper.selectPartnersCashRecordById(cashid);
    }

    /**
     * 查询合伙人提现记录列表
     * 
     * @param partnersCashRecord 合伙人提现记录
     * @return 合伙人提现记录
     */
    @Override
    public List<PartnersCashRecord> selectPartnersCashRecordList(PartnersCashRecord partnersCashRecord)
    {
        return partnersCashRecordMapper.selectPartnersCashRecordList(partnersCashRecord);
    }

    /**
     * 新增合伙人提现记录
     * 
     * @param partnersCashRecord 合伙人提现记录
     * @return 结果
     */
    @Override
    public int insertPartnersCashRecord(PartnersCashRecord partnersCashRecord)
    {
        return partnersCashRecordMapper.insertPartnersCashRecord(partnersCashRecord);
    }

    /**
     * 修改合伙人提现记录
     * 
     * @param partnersCashRecord 合伙人提现记录
     * @return 结果
     */
    @Override
    public int updatePartnersCashRecord(PartnersCashRecord partnersCashRecord)
    {
        return partnersCashRecordMapper.updatePartnersCashRecord(partnersCashRecord);
    }

    /**
     * 批量删除合伙人提现记录
     * 
     * @param cashids 需要删除的合伙人提现记录ID
     * @return 结果
     */
    @Override
    public int deletePartnersCashRecordByIds(Long[] cashids)
    {
        return partnersCashRecordMapper.deletePartnersCashRecordByIds(cashids);
    }

    /**
     * 删除合伙人提现记录信息
     * 
     * @param cashid 合伙人提现记录ID
     * @return 结果
     */
    @Override
    public int deletePartnersCashRecordById(Long cashid)
    {
        return partnersCashRecordMapper.deletePartnersCashRecordById(cashid);
    }
}
